# coding:utf-8
# __author__ = 'Gao'

from django import forms

class LoginForm(forms.Form):
    username = forms.CharField(widget=forms.TextInput(attrs={'class':'form-control', 'placeholder': u'输入用户名'}))
    password = forms.CharField(widget=forms.PasswordInput(attrs={'class': 'form-control', 'placeholder': u'输入密码'}))


class RegisterForm(forms.Form):
    username = forms.CharField(required=True, widget=forms.TextInput(attrs={'placeholder': u'输入用户名', 'onblur':'check()'}))
    email = forms.EmailField(required=True, widget=forms.TextInput(attrs={'placeholder': u'输入邮箱'}))
    password = forms.CharField(required=True, widget=forms.PasswordInput(attrs={'placeholder': u'输入密码'}))
    r_password = forms.CharField(required=True, widget=forms.PasswordInput(attrs={'placeholder': u'再次输入密码'}))


class CommentForm(forms.Form):
    comment = forms.CharField(label='', widget=forms.Textarea(attrs={'cols':'80', 'rows':'6'}))
